package com.lovo.invoicing.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lovo.invoicing.bean.PageBean;
import com.lovo.invoicing.bean.ProviderBean;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface IProviderService {
    void addProvider(ProviderBean providerBean);

    ProviderBean queryProviderById(int providerId);

    void updateProvider(ProviderBean providerBean);

    IPage<ProviderBean> queryProvidersByPage(PageBean<ProviderBean> pageBean);


    List<ProviderBean> queryAllProviders();

    //导入供应商
    void importProviderList(List<ProviderBean> providerBeanList);

    Map<String, Object> importExcel(MultipartFile file);
}
